var host = "http://127.0.0.1:8866";
var socket = io(host);
socket.on("connect",function(){
    console.log("connected");
});

socket.on("disconnect",function(){
    console.log("disconnect");
});

socket.on("message",function(data){
   console.log(data);
});